<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <include file="Pub:head"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/Style.css" />
    <script type="text/javascript">
        function search()
        {

            query_userName= $("#query_userName").val()==""?"0":$("#query_userName").val();
            query_sdate=$("#query_sdate").val()==""?"0":$("#query_sdate").val();
            query_edate=$("#query_edate").val()==""?"0":$("#query_edate").val();
            var url="__URL__/xufeilist/query_type/"+$("#type").val()+"/query_userName/"+query_userName+"/query_sdate/"+query_sdate+"/query_edate/"+query_edate;
            window.location.assign(url);
        }
    </script>

    <script type="text/javascript" src="__PUBLIC__/js/showdate.js"></script>
</head>
<body>
<div class="box1">

    <fieldset style="border-color:#999999;">
        <legend>续费管理</legend>
        <div class="box2" panelTitle="功能面板" id="searchPanel">
            <table>
                <tr>
                    <td style=" width:20px;"></td>
                    <td>客户名称：</td>
                    <td><input id="query_userName" name="query_userName" value="{$query_userName}" type="text"/></td>
                    <td>业务类型：</td>
                    <td>
                        <select name="type" id="type" keepDefaultStyle="true">
                            <option value="0" <?php if($query_type=='0') echo "selected";?>>全部</option>
                            <option value="1"  <?php if($query_type=='1') echo "selected";?>>400</option>
                            <option value="2"  <?php if($query_type=='2') echo "selected";?>>网站客户</option>
                            <option value="3"  <?php if($query_type=='3') echo "selected";?>>优化客户</option>
                            <option value="4"  <?php if($query_type=='4') echo "selected";?>>易商通客户</option>
                        </select>
                    </td>
                    <td>
                        续费日期：
                    </td>
                    <td>
                        <input type="text" id="query_sdate" name="query_sdate"  onclick="return Calendar('query_sdate');" class="formTitle"
                               value="{$query_sdate}"/>
                        -
                        <input type="text" id="query_edate" name="query_edate"  onclick="return Calendar('query_edate');" class="formTitle"
                               value="{$query_edate}"/>

                    </td>
                    <td>
                        <button type="button" onclick="search()"><span class="icon_find">查询</span></button>
                    </td>


                </tr>
            </table>
        </div>

        <table class="tableStyle">
            <tr>
                <td colspan="5" style=" text-align:right"></td>
                <td>总金额：{$summoney}</td>
            </tr>
            <tr id="{$vo['id']}">
                <td>负责人</td>
                <td>公司名称</td>
                <td>联系电话</td>
                <td>客户类型</td>
                <td>续费日期</td>
                <td>续费金额</td>
            </tr>
            <volist name="xufei_list" id="vo">
                <tr>
                    <td>{$vo['cname']}</td>
                    <td>{$vo['company']}</td>
                    <td>{$vo['tel']}</td>

                    <td>
                        <?php
                        switch($vo['type'])
                        {
                            case 1: echo "400客户"; break;
                            case 2: echo "网站客户"; break;
                            case 3: echo "优化客户"; break;
                            case 4: echo "易商通客户"; break;
                        }
                     ?>
                    </td>
                    <td>{$vo['xudate']}</td>
                    <td>{$vo['xumoney']}</td>
                </tr>
            </volist>
        </table>

    </fieldset>


</div>

<div id="TourExPage" class="page">{$pageshow}</div>
</body>
</html>